
#Time.py
import datetime
time_s = int(input("输入已经过去的分钟数:"))
hour,min = divmod(time_s,60)
#算法简介
# min=time_s%60
# hour={time_s/60 ,hour%24} 
# day= {hour/24}
strtime = datetime.datetime.now()
endtime = strtime + datetime.timedelta(minutes = time_s)
print("距当前时间过去{}小时{}分钟".format(hour,min))
print("现在的时间是："+ strtime.strftime("%Y-%m-%d %H:%M"))
print("设定的时间是："+ endtime.strftime("%Y-%m-%d %H:%M"))